<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS类选择器</title>
    <style>
        /* 类选择器口诀：样式点定义 结构类（class）调用 一个或多个  开发最常用 */
        .red{
            color: #ff0000;
        }
        .blue{
            color: blue;
        }
    </style>
</head>

<body>
<ul>
    <li class="red">猎手</li>
    <li class="red">My heart will go on</li>
    <li class="blue">I have nothing</li>
    <li>I will always love you</li>
    <li>长大成人</li>
    <li>斯卡布罗集市</li>
    <div class="red">我也想要变红色</div>
</ul>
</body>

</html>